import { createApp } from 'vue'
//@ts-ignore
import 'element-plus/theme-chalk/dark/css-vars.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'virtual:svg-icons-register'
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import globalComponents from './components/index'
import './styles/index.scss'
import store from './store/index'
import router from './router'
import isHasButthon from './directive/has'
const app = createApp(App)
app.use(globalComponents)
app.use(store)
app.use(ElementPlus, {
  locale: zhCn,
})
isHasButthon(app)
app.use(router)
import { Permission } from './router/permission'
new Permission()
app.mount('#app')
